import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      component: () => import('@/views/home.vue') 
    },
    { 
      path: '/sub1-app/:patchMatch(.*)*',
      name:'sub1-app',
      component: () => import('@/views/subContainer.vue') 
    },
    { 
      path: '/sub2-app/:patchMatch(.*)*',
      name:'sub2-app',
      component: () => import('@/views/subContainer.vue') 
    },
  ],
})

export default router
